package com.letoken.platform.repo.mall.res;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;

@Data
public class PayRes {
    @ApiModelProperty(name = "mallNumber", value = "商户编号", required = true)
    @NotNull(message = "地址不能为空")
   // @Size(min = 32,max = 32,message = "地址只能为32位")
    private String mallNumber;
    @ApiModelProperty(name = "amount", value = "支付金额", required = true)
    @NotNull(message = "支付金额不能为空")
    private BigDecimal amount;
    @ApiModelProperty(name = "contributing", value = "让利值", required = true)
    @NotNull(message = "让利值不能为空")
    @DecimalMax( value = "1",message = "让利值最大为100%")
    @DecimalMin(value = "0.01",message = "让利值最小为1%")
    private BigDecimal contributing;
    @ApiModelProperty(name = "amount", value = "支付金额", required = true)
    @NotNull(message = "支付金额不能为空")
    private BigDecimal amountCAP;

    @ApiModelProperty(name = "type", value = "支付类型 1.usdt  2.cap", required = true)
    private Integer type;

    private BigDecimal price;
}
